package com.zg.autoform.web.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 视图绑定数据选择器请求
 * @author zg
 */
@Data
@ApiModel(value = "视图绑定数据选择器请求", description = "视图绑定数据选择器请求")
public class ViewBindSelectReq {

    /**
     * 选择器id列表
     */
    @ApiModelProperty(value = "选择器id列表", required = true)
    @NotEmpty(message = "选择器id列表不能为空")
    private List<Long> selectIds;

    /**
     * 视图id
     */
    @ApiModelProperty(value = "视图id", required = true)
    @NotNull(message = "视图id不能为空")
    private Long viewId;
}
